using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using QLNhaSach.BUS;
using QLNhaSach.BUS.DTO;

namespace QLNhaSach.GUI.NhanVienQuanLySach
{
    public partial class PhieuNhapSach : Form
    {
        DataTable dt = new DataTable();
        public PhieuNhapSach()
        {
            InitializeComponent();
        }

        private void btnDong_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void groupPanel1_Click(object sender, EventArgs e)
        {

        }

        private void btnThem_Click(object sender, EventArgs e)
        {

        }

        private void PhieuNhapSach_Load(object sender, EventArgs e)
        {
            dt = NhanVienBanSachBUS.DSSach();
            lvDSSach.Items.Clear();
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                DataRow dr = dt.Rows[i];
                ListViewItem item = new ListViewItem();
                item.Text = dr["MaSach"].ToString();
                item.SubItems.Add(dr["TenSach"].ToString());               
                item.SubItems.Add(dr["SLCuoi"].ToString());
                lvDSSach.Items.Add(item);
            }
        }

       
    }
}